package org.clockworkmages.games.anno1186.situations.status.options;

import org.clockworkmages.games.anno1186.GameBeansContext;
import org.clockworkmages.games.anno1186.GameStateService;
import org.clockworkmages.games.anno1186.model.option.Option;
import org.clockworkmages.games.anno1186.situations.inventory.InventorySituation;

public class CharacterStatusOption
		extends Option {

	public static CharacterStatusOption INSTANCE = new CharacterStatusOption();

	private CharacterStatusOption() {
		super("CHARACTER STATUS");
		this.setLabel("Status");
	}

	@Override
	public void select() {

		InventorySituation situation = new InventorySituation();
		GameStateService gameStateService = GameBeansContext
				.getBean(GameStateService.class);
		gameStateService.addSituation(situation, true);
		super.select();
	}
}
